scsi: hisi_sas: Relocate some code to reduce complexity
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 6 Dec 2018 13:34:41 +0000 (21:34 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commited01a6869c7c1582ae93ad5631584118584c4c13
treef0cc99196466a2c1d8d026042717877aa312f91a
parent108bcc299cd0c891ee79a0781c4ca52bd7bd1f68
scsi: hisi_sas: Relocate some code to reduce complexity

Relocate the codes related to dma_map/unmap in hisi_sas_task_prep() to
reduce complexity, with a view to add DIF/DIX support.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Gbp-Pq: Topic bugfix/arm64/huawei-taishan
Gbp-Pq: Name 0015-scsi-hisi_sas-Relocate-some-code-to-reduce-complexit.patch
drivers/scsi/hisi_sas/hisi_sas_main.c